package cards;

import static org.junit.Assert.*;

import org.junit.Test;

public class TestCard {
	@Test
	public void testGetSTUDENT_31Card() {
		Card card = Card.getCard(CardType.STUDENT_31);
		CardType expectedType = CardType.STUDENT_31;
		CardType actualType = card.getType();
		assertEquals(expectedType, actualType);
	}
	
	@Test
	public void testGetSTUDENT_10Card() {
		Card card = Card.getCard(CardType.STUDENT_10);
		CardType expectedType = CardType.STUDENT_10;
		CardType actualType = card.getType();
		assertEquals(expectedType, actualType);
	}
	
	@Test
	public void testGetSCHOOL_31Card() {
		Card card = Card.getCard(CardType.SCHOOL_31);
		CardType expectedType = CardType.SCHOOL_31;
		CardType actualType = card.getType();
		assertEquals(expectedType, actualType);
	}
	
	@Test
	public void testGetSCHOOL_10Card() {
		Card card = Card.getCard(CardType.SCHOOL_10);
		CardType expectedType = CardType.SCHOOL_10;
		CardType actualType = card.getType();
		assertEquals(expectedType, actualType);
	}
	
	@Test
	public void testGetCOMMON_5Card() {
		Card card = Card.getCard(CardType.COMMON_5);
		CardType expectedType = CardType.COMMON_5;
		CardType actualType = card.getType();
		assertEquals(expectedType, actualType);
	}
	
	@Test
	public void testGetCOMMON_10Card() {
		Card card = Card.getCard(CardType.COMMON_10);
		CardType expectedType = CardType.COMMON_10;
		CardType actualType = card.getType();
		assertEquals(expectedType, actualType);
	}
}
